package com.ly.heart.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ly.heart.domain.KingInventoryMaterialDetailEntity;
import com.ly.heart.mapper.KingInventoryMaterialDetailMapper;
import com.ly.heart.service.IKingInventoryMaterialDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 金蝶-入库/出库明细其他信息Service业务层处理
 *
 * @author cxl
 * @date 2024-07-13
 */
@Service
public class KingInventoryMaterialDetailServiceImpl extends ServiceImpl<KingInventoryMaterialDetailMapper,KingInventoryMaterialDetailEntity> implements IKingInventoryMaterialDetailService {

    @Resource
    private KingInventoryMaterialDetailMapper kingInventoryMaterialDetailMapper;

    /**
     * 查询金蝶-入库/出库明细其他信息
     *
     * @param id 金蝶-入库/出库明细其他信息ID
     * @return 金蝶-入库/出库明细其他信息
     */
    @Override
    public KingInventoryMaterialDetailEntity selectKingInventoryMaterialDetailEntityById(String id)
    {
        return kingInventoryMaterialDetailMapper.selectKingInventoryMaterialDetailEntityById(id);
    }

    /**
     * 查询金蝶-入库/出库明细其他信息列表
     *
     * @param kingInventoryMaterialDetailEntity 金蝶-入库/出库明细其他信息
     * @return 金蝶-入库/出库明细其他信息
     */
    @Override
    public List<KingInventoryMaterialDetailEntity> selectKingInventoryMaterialDetailEntityList(KingInventoryMaterialDetailEntity kingInventoryMaterialDetailEntity)
    {
        return kingInventoryMaterialDetailMapper.selectKingInventoryMaterialDetailEntityList(kingInventoryMaterialDetailEntity);
    }

    /**
     * 新增金蝶-入库/出库明细其他信息
     *
     * @param kingInventoryMaterialDetailEntity 金蝶-入库/出库明细其他信息
     * @return 结果
     */
    @Override
    public int insertKingInventoryMaterialDetailEntity(KingInventoryMaterialDetailEntity kingInventoryMaterialDetailEntity)
    {
        return kingInventoryMaterialDetailMapper.insertKingInventoryMaterialDetailEntity(kingInventoryMaterialDetailEntity);
    }

    /**
     * 修改金蝶-入库/出库明细其他信息
     *
     * @param kingInventoryMaterialDetailEntity 金蝶-入库/出库明细其他信息
     * @return 结果
     */
    @Override
    public int updateKingInventoryMaterialDetailEntity(KingInventoryMaterialDetailEntity kingInventoryMaterialDetailEntity)
    {
        return kingInventoryMaterialDetailMapper.updateKingInventoryMaterialDetailEntity(kingInventoryMaterialDetailEntity);
    }

    /**
     * 批量删除金蝶-入库/出库明细其他信息
     *
     * @param ids 需要删除的金蝶-入库/出库明细其他信息ID
     * @return 结果
     */
    @Override
    public int deleteKingInventoryMaterialDetailEntityByIds(String[] ids)
    {
        return kingInventoryMaterialDetailMapper.deleteKingInventoryMaterialDetailEntityByIds(ids);
    }

    /**
     * 删除金蝶-入库/出库明细其他信息信息
     *
     * @param id 金蝶-入库/出库明细其他信息ID
     * @return 结果
     */
    @Override
    public int deleteKingInventoryMaterialDetailEntityById(String id)
    {
        return kingInventoryMaterialDetailMapper.deleteKingInventoryMaterialDetailEntityById(id);
    }
}
